<%--
  Created by IntelliJ IDEA.
  User: Chen
  Date: 2016/4/23
  Time: 19:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>重新登陆</title>
</head>
<body>
    <div style="position: absolute;top: 50%;left: 50%">
        <p style="font-size: larger">修改成功，系统将会在<strong id="endtime"></strong>秒后跳转到登录页！</p>
        <a href="${ctx}/login" style="font-size: larger">直接跳转登录页</a>
    </div>

    <script type="text/javascript">
        var i = 3;
        function remainTime(){
            if(i==0){
                window.location.href = $CONFIG.base_url + "/login";
            }
            document.getElementById('endtime').innerHTML=i--;
            setTimeout("remainTime()",1000);
        }
        remainTime();
    </script>
</body>
</html>
